package net.sourceforge.peers.sip.core.useragent;

import net.sourceforge.peers.sip.transport.SipRequest;
import net.sourceforge.peers.sip.transport.SipResponse;

public interface SipListener {

    //注册中
    void registering(SipRequest sipRequest);

    //注册成功
    void registerSuccessful(SipResponse sipResponse);

    //注册失败
    void registerFailed(SipResponse sipResponse);

    //来电
    void incomingCall(SipRequest sipRequest, SipResponse provResponse);

    //对方挂断
    void remoteHangup(SipRequest sipRequest);

    //振铃中
    void ringing(SipResponse sipResponse);

    //接听
    void calleePickup(SipResponse sipResponse);

    //error
    void error(SipResponse sipResponse);

}
